/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"0B8E9176-34F8-415B-A484-D0150055F7E9"}
 */
function calendarioNacimiento(event) {
	var $hoy = application.getServerTimeStamp()
	var $fDesde = new Date($hoy.getFullYear()-100, $hoy.getMonth(),$hoy.getDate(), 0,0,0,0)
	var $fHasta = new Date($hoy.getFullYear()-18, $hoy.getMonth(),$hoy.getDate(), 0,0,0,0)
	var $form = globals.mostrarCalendarioMes($hoy.getMonth()+1, $hoy.getFullYear()-50, $fDesde, $fHasta, 'POPUP', null, 'hoteleria_'+gcadena_to_cadenas.estilo)
	plugins.window.showFormPopup(elements.fld_nacimiento,forms[$form],foundset.getRecord(foundset.getSelectedIndex()),'fecha_nacimiento')
}

/**
 * Handle changed data.
 *
 * @param {Number} oldValue old value
 * @param {Number} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"3A890B1D-7B23-488B-9AB6-6F081B93E982"}
 */
function onDataChangeTipoUsr(oldValue, newValue, event) {
	if (newValue == 1)
	{
		elements.cliente_id.editable = true
	}
	else
	{
		elements.cliente_id.editable = false
	}
	return true
}
